import config from "@/config"
import http from "@/utils/request"

export default {
	//项目列表
	project:{
		list: {
			url: `${config.API_URL}/adminapi/project.Project/lists`,
			name: "获取项目列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.Project/add`,
			name: "添加项目",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.Project/edit`,
			name: "修改项目",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.Project/delete`,
			name: "删除项目",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.Project/detail`,
			name: "项目详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/project.Project/changeTicket`,
			name: "修改项目开票状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/project.Project/import`,
			name: "项目导入",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
    //报价
	offer:{
		list: {
			url: `${config.API_URL}/adminapi/project.Offer/lists`,
			name: "获取报价列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.Offer/add`,
			name: "添加报价",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.Offer/edit`,
			name: "修改报价",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.Offer/delete`,
			name: "删除报价",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.Offer/detail`,
			name: "报价详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.Offer/all`,
			name: "报价 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.Offer/dataAll`,
			name: "报价 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/project.Offer/import`,
			name: "项目导入",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
    //合同
	contract:{
		list: {
			url: `${config.API_URL}/adminapi/project.Contract/lists`,
			name: "获取合同列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.Contract/add`,
			name: "添加合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.Contract/edit`,
			name: "修改合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.Contract/delete`,
			name: "删除合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.Contract/detail`,
			name: "合同详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.Contract/all`,
			name: "合同 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.Contract/dataAll`,
			name: "合同 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/project.Contract/import`,
			name: "项目导入",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
    //应收账款
	receivable:{
		list: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/lists`,
			name: "获取应收账款列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/add`,
			name: "添加应收账款",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/edit`,
			name: "修改应收账款",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/delete`,
			name: "删除应收账款",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/detail`,
			name: "应收账款详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/all`,
			name: "开票 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.CollectAccount/dataAll`,
			name: "开票 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/project.CollectAccount/import`,
			name: "项目导入",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
    //回款记录
	payment:{
		list: {
			url: `${config.API_URL}/adminapi/finance.PaymentRecord/lists`,
			name: "获取回款记录列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/finance.PaymentRecord/add`,
			name: "添加回款记录",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/finance.PaymentRecord/edit`,
			name: "修改回款记录",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/finance.PaymentRecord/delete`,
			name: "删除回款记录",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/finance.PaymentRecord/changeStatus`,
			name: "回款记录审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/finance.PaymentRecord/detail`,
			name: "回款记录详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //备用金
	Imprest:{
		list: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/lists`,
			name: "获取备用金列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        list_year: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/monthLists`,
			name: "获取备用金列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/add`,
			name: "添加备用金",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/edit`,
			name: "修改备用金",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/delete`,
			name: "删除备用金",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/detail`,
			name: "备用金详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/changeStatus`,
			name: "备用金审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/all`,
			name: "备用金 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.ReserveFund/dataAll`,
			name: "备用金 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
			url: `${config.API_URL}/adminapi/project.reserve_fund/exportReserve`,
			name: "备用金 -- 申请单导出",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //项目成本
	itemcost:{
		list: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/lists`,
			name: "获取项目成本列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        newlist: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/costlists`,
			name: "获取项目成本列表 -- 新",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/add`,
			name: "添加项目成本",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/edit`,
			name: "修改项目成本",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/delete`,
			name: "删除项目成本",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/detail`,
			name: "项目成本详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/all`,
			name: "项目成本 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.ProjectCost/dataAll`,
			name: "项目成本 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/project.ProjectCost/import`,
			name: "项目导入",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
        export_all: {
            url: `${config.API_URL}/adminapi/project.ProjectCost/export`,
			name: "项目导出",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
        newExport: {
            url: `${config.API_URL}/adminapi/project.ProjectCost/costlistsExport`,
			name: "项目导出",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
        },
	},
    //工作人员提成
	royalty:{
		list: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/lists`,
			name: "获取工作人员提成列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        adminList: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/projectLists`,
			name: "工作人员提成列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/add`,
			name: "添加工作人员提成",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/edit`,
			name: "修改工作人员提成",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/delete`,
			name: "删除工作人员提成",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/detail`,
			name: "工作人员提成详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/all`,
			name: "工作人员 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.StaffCommission/dataAll`,
			name: "工作人员 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/project.StaffCommission/import`,
			name: "工作人员导入",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
    //开票管理
	invoice:{
		list: {
			url: `${config.API_URL}/adminapi/project.Invoice/lists`,
			name: "获取开票管理列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.Invoice/add`,
			name: "添加开票管理",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.Invoice/edit`,
			name: "修改开票管理",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.Invoice/delete`,
			name: "删除开票管理",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.Invoice/detail`,
			name: "开票管理详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.Invoice/all`,
			name: "开票 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.Invoice/dataAll`,
			name: "开票 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/project.Invoice/changeStatus`,
			name: "开票管理 -- 审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        upload: {
			url: `${config.API_URL}/adminapi/project.Invoice/uploadVoucher`,
			name: "开票管理 -- 添加附件",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //推介人提成
	referrer:{
		list: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/lists`,
			name: "获取推介人提成列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/add`,
			name: "添加推介人提成",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/edit`,
			name: "修改推介人提成",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/delete`,
			name: "删除推介人提成",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/detail`,
			name: "推介人提成详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/all`,
			name: "推介人 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.RecommendCommission/dataAll`,
			name: "推介人 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //酒店预授权
	hotel:{
		list: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/lists`,
			name: "获取酒店预授权列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/add`,
			name: "添加酒店预授权",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/edit`,
			name: "修改酒店预授权",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/delete`,
			name: "删除酒店预授权",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/detail`,
			name: "酒店预授权详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        all: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/all`,
			name: "酒店预授权 -- 全部",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        allAdd: {
			url: `${config.API_URL}/adminapi/project.HotelPresale/dataAll`,
			name: "酒店预授权 -- 项目详情中新增",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
}
